package com.course.server.enums;

import lombok.Getter;
import lombok.Setter;

/**
 * @author: Durian
 * @date: 2021/5/30 13:39
 */

@Getter
public enum BusinessExceptionEnum {

    USER_ALREADY_EXISTS(100121, "登录名已存在"),
    USER_NOT_EXISTS(100122, "账号不存在"),
    PASSWORD_ERROR(100123, "账号或密码错误"),
    ;

    private Integer code;
    private String desc;

    BusinessExceptionEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
